package com.guigu.www.mapper;

import com.guigu.www.pojo.Member;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DengHao
 * @since 2021-10-21
 */
public interface MemberMapper extends BaseMapper<Member> {
    /*陈显科  更换头像*/
    @Update("UPDATE member SET mem_img = #{img} WHERE mem_id =#{userid}")
    int UpdateImg(String img,int userid);

    /*陈显科  根据用户编号修改密码*/
    @Update("UPDATE member SET mem_password = #{password} WHERE mem_id =#{mid}")
    int updateMePassword(String password,int mid);
}
